package {{packageName}};

import io.swagger.annotations.*;
import lombok.Data;
import javax.validation.*;
import javax.validation.constraints.*;
{{#imports}}
{{.}}
{{/imports}}

@Data
@ApiModel(description = "{{modelDesc}}")
public class {{modelName}}{

{{#apiModelFields}}
    @ApiModelProperty(value = "{{{fieldDesc}}}" ,required = {{required}})
    {{#recursiveCheck}}
    @Valid
    {{/recursiveCheck}}
    {{#stringCheck}}
    @NotEmpty(message = "{{{fieldDesc}}}不能为空")
    {{/stringCheck}}
    {{#nullCheck}}
    @NotNull(message = "{{{fieldDesc}}}不能为空")
    {{/nullCheck}}
    {{#listCheck}}
    @Size(min = 1 ,message = "{{{fieldDesc}}}不能为空")
    {{/listCheck}}
    private {{{fieldType}}} {{fieldName}};

{{/apiModelFields}}

}